package com.bonc.insight.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import lombok.experimental.Accessors;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author bonc
 * @since 2022-01-14
 */
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
@Accessors(chain = true)
public class TClientInfo implements Serializable{

    private static final long serialVersionUID=1L;

    /** 应用的id */
    @TableId(value = "client_id" ,type = IdType.ASSIGN_UUID)
    private String clientId;

    @TableField(value = "client_name")
    private String clientName;

    /** RS与AS共享的密钥 */
    @TableField(value = "client_secret")
    private String clientSecret;

    @TableField(value = "ip")
    private String ip;

    /** 域名 */
    @TableField(value = "domain_name")
    private String domainName;

    /** 状态：001-启用；000-停用 */
    @TableField(value = "status")
    private String status;

    /** 创建时间 */
    @TableField(value = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 最后修改人 */
    @TableField(value = "last_update")
    private String lastUpdate;

    /** 最后修改时间 */
    @TableField(value = "last_update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date lastUpdateTime;

}
